package com.jt.vo;


public class SysResult {

    private Integer status;
    private String msg;
    private Object data;

    public SysResult(){}

    public SysResult(Integer status, String msg, Object data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public static SysResult fail() {
        return new SysResult(201, "业务执行失败", null);
    }

    public static SysResult success() {
        return new SysResult(200, "业务执行成功", null);
    }

    public static SysResult success(Object data) {
        return new SysResult(200, "业务执行成功", data);
    }

    public static SysResult success(String msg, Object data) {
        return new SysResult(200, msg, data);
    }
}
